// 菜单 侧边栏
// import axios from 'axios'
// let obj = []
// function asides() {
//   axios.get('/api/authority/managePes').then((res)=>{
//     let arrray = []
//     //localStorage.getItem('adminname')
//     console.log(res.data.data);
//     res.data.data.forEach((item)=>{
//       if(item.name == '小海'){
//         arrray = item.son
//       }
//     })
//     let arring = []
//     arrray.forEach((i,index)=>{
//       i = i.split('--')
//         arring.push({
//             title:i[0],
//             children:[{title:i[1],path:""}]
//         })
//     })
//    return console.log(arrray);
//     function Map(arr){
//       var newArr = [];
//       arr.forEach(item => {
//         var dataItem = item;
//         if (newArr.length > 0) {
//           var filter = newArr.filter(v => {
//             return v.title == dataItem.title
//           })
//           if (filter.length > 0) {
//             newArr.forEach(n => {
//               if (n.title == filter[0].title) {
//                   n.children.push({title:filter[0].children+dataItem.children,path:""})
//               }
//             })
//           } else {
//             newArr.push(dataItem)
//           }
//         } else {
//           newArr.push(dataItem)
//         }
//       });
//       return newArr
//     }
//     obj = Map(arring)
//     console.log(obj);
//   })
// }
// asides()
export default [
{ path: '/index', title: '首页', icon: 'home' },
{
  title: '刷手管理',
  icon: 'folder-o',
  children: [
    { path: '/brushhandlist', title: '刷手信息' },
    { path: '/brushhandaudit', title: '刷手审核' },
    { path: '/brushhandauditlevel', title: '升级师傅审核'},
    { path: '/DWWAudit', title: '多旺旺审核'},
    { path: '/Change_Audit', title: '换旺旺审核'},
    { path: '/DY_audit', title: '抖音刷手审核' },
    { path: '/PDDaudit', title: '拼多多刷手审核' }
  ]
},
{
  title: '商户管理',
  icon: 'folder-o',
  children: [
    { path: '/cardaudit', title: '银行卡审核' },
    { path: '/acount_pay', title: '商户充值' },
    { path: '/merchants', title: '商户激活' },
    { path: '/shoplist', title: '店铺信息' },
    { path: '/Merchant_price_modification', title: '商户价格修改' },
    { path: '/Commercial_flag', title: '商户插旗' },
  ]
},
{
  title: '任务管理',
  icon: 'folder-o',
  children: [
    { path: '/tasklist', title: '任务列表' },
    { path: '/OtherRaskList', title: '额外任务列表' },
    { path: '/taskorder', title: '订单列表' },
    { path: '/taskmonitor', title: '任务监控' },
    { path: '/missingtask', title: '当天未发任务' },
    { path: '/timedetails', title: '时间点任务详情' },
    { path: '/reviewEvaluate', title: '评价审核列表' },
  ]
},
{
  title: '统计',
  icon: 'folder-o',
  children: [
    { path: '/statistics', title: '任务利润明细' },
    { path: '/brush_details', title: '刷手操作明细'},
    { path: '/merchantconsumption', title: '商家消费明细' },
    { path: '/reacrge_details', title: '后台充值明细' },
    {path: '/AccountDetails', title: '财务明细', icon: 'home'},
  ]
},
{
  title: '设置',
  icon: 'folder-o',
  children: [
    {path: '/powerinfo', title: '菜单列表', icon: 'home'},
    {path: '/Role_list', title: '角色列表', icon: 'home'},
    {path: '/configone', title: '配置项', icon: 'home'},
  ]
},
]
